package com.miplus.ccrm.admin.service;

import com.miplus.ccrm.admin.controller.vo.*;
import com.miplus.ccrm.admin.pojo.SysGrp;
import com.baomidou.mybatisplus.extension.service.IService;
import com.miplus.ccrm.common.CmdResVo;

import java.util.List;

/**
* @author pc
* @description 针对表【sys_grp】的数据库操作Service
* @createDate 2024-03-01 14:16:59
*/
public interface SysGrpService extends IService<SysGrp> {

    List<GrpTreeResVo> getGrpTree(String usrid,String pid,String gtype);

    List<GrpIDResVo> userMgrList(String usrid);

    CmdResVo updateGrpStatus(String usrid, GrpReqVo paras);
    CmdResVo deleteGrp(String usrid, GrpReqVo paras);

    CmdResVo updateGrp(String usrid, GrpEditReqVo paras);

    CmdResVo insertGrp(String usrid, GrpEditReqVo paras);

    List<NamesResVo> getPermGrpList(String $usrid,String gtype);

    List<NamesResVo> getActiveGrpList(String gtype);

    GrpInfoVo getMyGrpInfo(String usrid);
}
